package com.Zbl;

public class Bus extends MotoVehicle {

    //载客数量
    private int SeatCount;
    Database database;


    Bus(){

        database = new Database();

    }
    public  Bus (String nCarTvpe, String nNum, String nColor, String nBrand, int nSeaCount, String nType,
                 int nMeleage, int nRentCarMonet){

        super(nCarTvpe, nNum, nColor, nMeleage);
        database = new Database();

        database.add(nCarTvpe, nNum, nColor, nBrand, nSeaCount, nType, nMeleage, nRentCarMonet);

    }

    //显示所有客车的信息
    @Override
    void CarObvious() {
        System.out.println("以下是所有客车车辆信息");
        database.select("客车","CarType");

    }

    @Override
    public Void Calrent(int day) {
        return null;
    }

    public Bus(int seatCount) {
        SeatCount = seatCount;
    }

    public void setSeatCount(int seatCount) {
        SeatCount = seatCount;
    }
}
